﻿//Write an expression that calculates trapezoid's 
//area by given sides a and b and height h.

using System;

namespace TrapezoidArea
{
    class Trapezoid
    {
        static void Main()
        {
            Console.Write("Please enter the trapezoid's side a: ");
            int a = int.Parse(Console.ReadLine());
            Console.Write("Please enter the trapezoid's side b: ");
            int b = int.Parse(Console.ReadLine());
            Console.Write("Please enter the trapezoid's hight h: ");
            int h = int.Parse(Console.ReadLine());

            int area = ((a + b) / 2) * h;
            Console.WriteLine("The area is: {0}.", area);
        }
    }
}
